#ifndef _SESSION_H_
#define _SESSION_H_

class Session {
	uint32_t srcAddr;
	uint32_t dstAddr;
	uint16_t srcPort;
	uint16_t dstPort;

	uint32_t counter;
public:
	uint8_t *priv;

	Session(uint32_t sa, uint32_t da, uint16_t sp, uint16_t dp) :
		srcAddr(sa), dstAddr(da), srcPort(sp), dstPort(dp),
		counter(0), priv(0) {}

	inline uint32_t getSrcAddr(void) const { return srcAddr; }
	inline uint32_t getDstAddr(void) const { return dstAddr; }
	inline uint16_t getSrcPort(void) const { return srcPort; }
	inline uint16_t getDstPort(void) const { return dstPort; }

	inline uint32_t getCounter(void) const { return counter; }
	inline void incrCounter(void) { ++counter; }
};

#endif
